package com.csc.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        AbstractApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
        SpringHelloWorld obj = (SpringHelloWorld) context.getBean("springHelloWorld");
        obj.hello();
        
        context.registerShutdownHook();
    }

}
